package com.hmall.mapper;

import com.hmall.model.SysUserDetail;
import com.hmall.util.MyMapper;
import com.hmall.vo.UnitContactVo;
import com.hmall.vo.SysUserDetailVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface SysUserDetailMapper extends MyMapper<SysUserDetail> {

    SysUserDetail selectByUserId(@Param("userId") Integer userId);

    List<SysUserDetail> selectUserDetail();
    UnitContactVo selectUnitByUserId(@Param("userId") Integer userId);

    SysUserDetailVo selectByUserIdVo(@Param("userId") Integer userId);

    Integer deleteByUserId(@Param("user_id") Integer User_id);
}